package jgo;

public class Route {
	public final String method;
	public final String path;
	public final Handler handler;

    public Route(String method, String path, Handler handler) {
        this.method = method;
        this.path = path;
        this.handler = handler;
    }

    public boolean matches(String method, String path) {
        return this.method.equals(method) && this.path.equals(path);
    }
}